<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
		<script src="../js/jquery-1.12.1.min.js" type="text/javascript" charset="utf-8"></script>
		
		<script>
			function onLoaded(){
					
				let divs = document.getElementsByTagName("div");	
				for (var i = 0; i < divs.length; i++) {
					console.log(divs[i].innertText)
				}
					
				console.log('$("div").text()',$("div").text())
				
			}
		</script>
	</head>
	<body onload="onLoaded()">
		
		<div id="d1">dddddddd</div>
		<div >dddddddd1</div>
		<div >dddddddd2</div>
		<div >dddddddd3</div>
		
	</body>
</html>
